import { MockMethod } from "vite-plugin-mock"

export default [
  {
    url: "/dev-api/ic/aircondition/treeList",
    timeout: 2000,
    method: "get",
    response: () => {
      return {
        "code": 20000,
        "message": "查询成功",
        "data": {
          "records": [{ //生成20条数据
            "id": 1, //初始值1开始，每条+1
            "icons": 'slack',
            "label": '成都区项目',
            "children": [
              {
                "id": 2,
                "label": '天盛国际',
                "icons": 'slack',
                "children": [
                  {
                    "id": 4,
                    "label": '1楼(25)',
                    "icons": 'floor',
                  },
                  {
                    "id": 5,
                    "label": '2楼(06)',
                    "icons": 'floor',
                  }
                ]
              },
              {
                "id": 3,
                "label": '万科九溪糖',
                "icons": 'slack',
                "children": [
                  {
                    "id": 6,
                    "label": '5楼(17)',
                    "icons": 'floor',
                  },
                  {
                    "id": 7,
                    "label": '3楼(05)',
                    "icons": 'floor',
                  }
                ]
              },
            ]
          }]
        }
      }
    }
  },
] as MockMethod[]